package com.danskin.wechat.service;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.danskin.wechat.dao.WxMsgReplyDetailDao;
import com.danskin.wechat.util.LogUtil;
import com.danskin.wechat.util.Page;
import com.danskin.wechat.vo.WxMsgReplyDetailVo;

@Service
public class WxMsgReplyDetailServiceImpl implements WxMsgReplyDetailService{
	
	@Autowired
	private WxMsgReplyDetailDao wxMsgReplyDetailDao;
	
	public List<WxMsgReplyDetailVo> listPageMsgReplyDetailList(Page page) {
		LogUtil.info("======消息分析关键字分页查询参数："+ToStringBuilder.reflectionToString(page));
		
		List<WxMsgReplyDetailVo> replyDetailVoList = new ArrayList<WxMsgReplyDetailVo>();
		
		try {
			replyDetailVoList = wxMsgReplyDetailDao.listPageMsgReplyDetailList(page);
		} catch (Exception e) {
			LogUtil.error("========消息分析关键字分页查询异常", e);
		}
		return replyDetailVoList;
	}

}
